<%@page import="com.jm.web.form.Button"%>
<%@page import="com.jm.web.form.Toolbar"%>
<%@ page language="java" contentType= "text/html" pageEncoding="UTF-8"%>
<%@include file="/include/common/griduihead1.jsp"%>
<%
	page1.setFastMode(true);
	page1.getPageTitle().setEnab(false);
%>
<%@include file="/include/common/griduihead2.jsp"%>
<%
	page1.getPageTitle().setTitle("流程簽核頁面left");
	page1.setMinWidth(100);
	String firstWFName = "";
	
	List btns = new ArrayList();
	Button bt2 = Toolbar.getNewButton("刷新","wfrefresh","wfrefresh","xt-btn-icon sx-tb-refresh",null);
	bt2.setOnClick("self.location.href=self.location.href;");
	btns.add(bt2);
%>
<jm:form>
<jm:layout postion="north">
	<textarea name="whr" style="display: none;"><%=form.gpsv("whr")%></textarea>
	<jm:error></jm:error>
</jm:layout>

<jm:layout postion="center">
	<jm:table id="grid1" dataSet="<%=ret.getSerchResult()%>" toolbar="true" toolbarConfig="addRowEnab:false" toolbarButtons="<%=btns%>">
		<jm:thead>
			<tr class="">
				<td width="100px">單據類型</td>
				<td width="100px" class="td-center">數量</td>
			</tr>
		</jm:thead>
		<jm:tbody>
			<%
				if(StringHelper.IsNullOrEmpty(firstWFName)){firstWFName=ret.grsv("wfname");}
			%>
			<jm:tr>
				<jm:td cid="wfname"></jm:td>
				<jm:td cid="cnt" styleClass="td-center"><a href="#" onclick="openeditpage('<%=ret.grsv("wfname")%>');"><%=ret.grsv("cnt")%></jm:td>
			</jm:tr>
		</jm:tbody>
	</jm:table>
</jm:layout>
</jm:form>
<jm:script><script type="text/javascript" charset="UTF-8">
	var targetWin = null ;
	if(targetWin == null){
		targetWin = parent.$('#mainFrame')[0].contentWindow;
	}
	
	targetWin.location.href='wf101S_right.jsp?wfname='+$P.encode('<%=firstWFName%>');
	
	function openeditpage(key){
		targetWin.location.href='wf101S_right.jsp?wfname='+$P.encode(key);
	}
</script></jm:script>
<%@include file="/include/common/griduiend.jsp"%>

